package site.duqian.wchook.model;

import java.util.List;

/**
 * Created by duqian on 2017/5/12.
 */

public class GoogleAddress {

    /**
     * results : [{"address_components":[{"long_name":"277","short_name":"277","types":["street_number"]},{"long_name":"Bedford Avenue","short_name":"Bedford Ave","types":["route"]},{"long_name":"Williamsburg","short_name":"Williamsburg","types":["neighborhood","political"]},{"long_name":"Brooklyn","short_name":"Brooklyn","types":["political","sublocality","sublocality_level_1"]},{"long_name":"Kings County","short_name":"Kings County","types":["administrative_area_level_2","political"]},{"long_name":"New York","short_name":"NY","types":["administrative_area_level_1","political"]},{"long_name":"美国","short_name":"US","types":["country","political"]},{"long_name":"11211","short_name":"11211","types":["postal_code"]}],"formatted_address":"277 Bedford Ave, Brooklyn, NY 11211美国","geometry":{"location":{"lat":40.7142205,"lng":-73.9612903},"location_type":"ROOFTOP","viewport":{"northeast":{"lat":40.71556948029149,"lng":-73.95994131970849},"southwest":{"lat":40.7128715197085,"lng":-73.9626392802915}}},"place_id":"ChIJd8BlQ2BZwokRAFUEcm_qrcA","types":["street_address"]},{"address_components":[{"long_name":"Grand St/Bedford Av","short_name":"Grand St/Bedford Av","types":["bus_station","establishment","point_of_interest","transit_station"]},{"long_name":"Williamsburg","short_name":"Williamsburg","types":["neighborhood","political"]},{"long_name":"Brooklyn","short_name":"Brooklyn","types":["political","sublocality","sublocality_level_1"]},{"long_name":"Kings County","short_name":"Kings County","types":["administrative_area_level_2","political"]},{"long_name":"New York","short_name":"NY","types":["administrative_area_level_1","political"]},{"long_name":"美国","short_name":"US","types":["country","political"]},{"long_name":"11211","short_name":"11211","types":["postal_code"]}],"formatted_address":"Grand St/Bedford Av, Brooklyn, NY 11211美国","geometry":{"location":{"lat":40.714321,"lng":-73.961151},"location_type":"APPROXIMATE","viewport":{"northeast":{"lat":40.71566998029149,"lng":-73.95980201970849},"southwest":{"lat":40.7129720197085,"lng":-73.96249998029151}}},"place_id":"ChIJi27VXGBZwokRM8ErPyB91yk","types":["bus_station","establishment","point_of_interest","transit_station"]},{"address_components":[{"long_name":"威廉斯堡","short_name":"威廉斯堡","types":["neighborhood","political"]},{"long_name":"布鲁克林","short_name":"布鲁克林","types":["political","sublocality","sublocality_level_1"]},{"long_name":"纽约","short_name":"纽约","types":["locality","political"]},{"long_name":"金斯县","short_name":"金斯县","types":["administrative_area_level_2","political"]},{"long_name":"纽约州","short_name":"NY","types":["administrative_area_level_1","political"]},{"long_name":"美国","short_name":"US","types":["country","political"]}],"formatted_address":"美国纽约州布鲁克林威廉斯堡","geometry":{"bounds":{"northeast":{"lat":40.7251773,"lng":-73.936498},"southwest":{"lat":40.6979329,"lng":-73.96984499999999}},"location":{"lat":40.7081156,"lng":-73.9570696},"location_type":"APPROXIMATE","viewport":{"northeast":{"lat":40.7251773,"lng":-73.936498},"southwest":{"lat":40.6979329,"lng":-73.96984499999999}}},"place_id":"ChIJQSrBBv1bwokRbNfFHCnyeYI","types":["neighborhood","political"]},{"address_components":[{"long_name":"布鲁克林","short_name":"布鲁克林","types":["political","sublocality","sublocality_level_1"]},{"long_name":"纽约","short_name":"纽约","types":["locality","political"]},{"long_name":"金斯县","short_name":"金斯县","types":["administrative_area_level_2","political"]},{"long_name":"纽约州","short_name":"NY","types":["administrative_area_level_1","political"]},{"long_name":"美国","short_name":"US","types":["country","political"]}],"formatted_address":"美国纽约州布鲁克林","geometry":{"bounds":{"northeast":{"lat":40.739446,"lng":-73.8333651},"southwest":{"lat":40.551042,"lng":-74.05663}},"location":{"lat":40.6781784,"lng":-73.9441579},"location_type":"APPROXIMATE","viewport":{"northeast":{"lat":40.739446,"lng":-73.8333651},"southwest":{"lat":40.551042,"lng":-74.05663}}},"place_id":"ChIJCSF8lBZEwokRhngABHRcdoI","types":["political","sublocality","sublocality_level_1"]},{"address_components":[{"long_name":"纽约","short_name":"纽约","types":["locality","political"]},{"long_name":"纽约州","short_name":"NY","types":["administrative_area_level_1","political"]},{"long_name":"美国","short_name":"US","types":["country","political"]}],"formatted_address":"美国纽约州纽约","geometry":{"bounds":{"northeast":{"lat":40.9175771,"lng":-73.70027209999999},"southwest":{"lat":40.4773991,"lng":-74.25908989999999}},"location":{"lat":40.7127837,"lng":-74.0059413},"location_type":"APPROXIMATE","viewport":{"northeast":{"lat":40.9152555,"lng":-73.70027209999999},"southwest":{"lat":40.4960439,"lng":-74.2557349}}},"place_id":"ChIJOwg_06VPwokRYv534QaPC8g","types":["locality","political"]},{"address_components":[{"long_name":"11211","short_name":"11211","types":["postal_code"]},{"long_name":"布鲁克林","short_name":"布鲁克林","types":["political","sublocality","sublocality_level_1"]},{"long_name":"纽约","short_name":"纽约","types":["locality","political"]},{"long_name":"纽约州","short_name":"NY","types":["administrative_area_level_1","political"]},{"long_name":"美国","short_name":"US","types":["country","political"]}],"formatted_address":"美国纽约州布鲁克林邮政编码: 11211","geometry":{"bounds":{"northeast":{"lat":40.7280089,"lng":-73.9207299},"southwest":{"lat":40.7008331,"lng":-73.9644697}},"location":{"lat":40.7093358,"lng":-73.9565551},"location_type":"APPROXIMATE","viewport":{"northeast":{"lat":40.7280089,"lng":-73.9207299},"southwest":{"lat":40.7008331,"lng":-73.9644697}}},"place_id":"ChIJvbEjlVdZwokR4KapM3WCFRw","types":["postal_code"]},{"address_components":[{"long_name":"金斯县","short_name":"金斯县","types":["administrative_area_level_2","political"]},{"long_name":"纽约州","short_name":"NY","types":["administrative_area_level_1","political"]},{"long_name":"美国","short_name":"US","types":["country","political"]}],"formatted_address":"美国纽约州金斯县","geometry":{"bounds":{"northeast":{"lat":40.739446,"lng":-73.8333651},"southwest":{"lat":40.551042,"lng":-74.05663}},"location":{"lat":40.6528762,"lng":-73.95949399999999},"location_type":"APPROXIMATE","viewport":{"northeast":{"lat":40.7391407,"lng":-73.83363179999999},"southwest":{"lat":40.5703742,"lng":-74.0419592}}},"place_id":"ChIJOwE7_GTtwokRs75rhW4_I6M","types":["administrative_area_level_2","political"]},{"address_components":[{"long_name":"New York-Northern New Jersey-Long Island, NY-NJ-PA","short_name":"New York-Northern New Jersey-Long Island, NY-NJ-PA","types":["political"]},{"long_name":"美国","short_name":"US","types":["country","political"]}],"formatted_address":"New York-Northern New Jersey-Long Island, NY-NJ-PA, 美国","geometry":{"bounds":{"northeast":{"lat":41.6018065,"lng":-71.856214},"southwest":{"lat":39.49853299999999,"lng":-75.3585939}},"location":{"lat":40.9590293,"lng":-74.0300122},"location_type":"APPROXIMATE","viewport":{"northeast":{"lat":41.6018065,"lng":-71.856214},"southwest":{"lat":39.49853299999999,"lng":-75.3585939}}},"place_id":"ChIJ3YJV4PRWwokRFFI21ZrHXtQ","types":["political"]},{"address_components":[{"long_name":"New York Metropolitan Area","short_name":"New York Metropolitan Area","types":["political"]},{"long_name":"美国","short_name":"US","types":["country","political"]}],"formatted_address":"New York Metropolitan Area, 美国","geometry":{"bounds":{"northeast":{"lat":42.0809059,"lng":-71.777491},"southwest":{"lat":39.475198,"lng":-75.3587649}},"location":{"lat":40.7127761,"lng":-74.0059544},"location_type":"APPROXIMATE","viewport":{"northeast":{"lat":42.0809059,"lng":-71.777491},"southwest":{"lat":39.475198,"lng":-75.3587649}}},"place_id":"ChIJ-5Z24NaGwokRiMh4Rj8FNMo","types":["political"]},{"address_components":[{"long_name":"纽约州","short_name":"NY","types":["administrative_area_level_1","establishment","point_of_interest","political"]},{"long_name":"美国","short_name":"US","types":["country","political"]}],"formatted_address":"美国纽约州","geometry":{"bounds":{"northeast":{"lat":45.015865,"lng":-71.777491},"southwest":{"lat":40.4773991,"lng":-79.7625901}},"location":{"lat":43.2994285,"lng":-74.21793260000001},"location_type":"APPROXIMATE","viewport":{"northeast":{"lat":45.0125923,"lng":-71.8562029},"southwest":{"lat":40.4961036,"lng":-79.761996}}},"place_id":"ChIJqaUj8fBLzEwRZ5UY3sHGz90","types":["administrative_area_level_1","establishment","point_of_interest","political"]}]
     * status : OK
     */

    private String status;
    private List<ResultsBean> results;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public List<ResultsBean> getResults() {
        return results;
    }

    public void setResults(List<ResultsBean> results) {
        this.results = results;
    }

    public static class ResultsBean {
        /**
         * address_components : [{"long_name":"277","short_name":"277","types":["street_number"]},{"long_name":"Bedford Avenue","short_name":"Bedford Ave","types":["route"]},{"long_name":"Williamsburg","short_name":"Williamsburg","types":["neighborhood","political"]},{"long_name":"Brooklyn","short_name":"Brooklyn","types":["political","sublocality","sublocality_level_1"]},{"long_name":"Kings County","short_name":"Kings County","types":["administrative_area_level_2","political"]},{"long_name":"New York","short_name":"NY","types":["administrative_area_level_1","political"]},{"long_name":"美国","short_name":"US","types":["country","political"]},{"long_name":"11211","short_name":"11211","types":["postal_code"]}]
         * formatted_address : 277 Bedford Ave, Brooklyn, NY 11211美国
         * geometry : {"location":{"lat":40.7142205,"lng":-73.9612903},"location_type":"ROOFTOP","viewport":{"northeast":{"lat":40.71556948029149,"lng":-73.95994131970849},"southwest":{"lat":40.7128715197085,"lng":-73.9626392802915}}}
         * place_id : ChIJd8BlQ2BZwokRAFUEcm_qrcA
         * types : ["street_address"]
         */

        private String formatted_address;
        private GeometryBean geometry;
        private String place_id;
        private List<AddressComponentsBean> address_components;
        private List<String> types;

        public String getFormatted_address() {
            return formatted_address;
        }

        public void setFormatted_address(String formatted_address) {
            this.formatted_address = formatted_address;
        }

        public GeometryBean getGeometry() {
            return geometry;
        }

        public void setGeometry(GeometryBean geometry) {
            this.geometry = geometry;
        }

        public String getPlace_id() {
            return place_id;
        }

        public void setPlace_id(String place_id) {
            this.place_id = place_id;
        }

        public List<AddressComponentsBean> getAddress_components() {
            return address_components;
        }

        public void setAddress_components(List<AddressComponentsBean> address_components) {
            this.address_components = address_components;
        }

        public List<String> getTypes() {
            return types;
        }

        public void setTypes(List<String> types) {
            this.types = types;
        }

        public static class GeometryBean {
            /**
             * location : {"lat":40.7142205,"lng":-73.9612903}
             * location_type : ROOFTOP
             * viewport : {"northeast":{"lat":40.71556948029149,"lng":-73.95994131970849},"southwest":{"lat":40.7128715197085,"lng":-73.9626392802915}}
             */

            private LocationBean location;
            private String location_type;
            private ViewportBean viewport;

            public LocationBean getLocation() {
                return location;
            }

            public void setLocation(LocationBean location) {
                this.location = location;
            }

            public String getLocation_type() {
                return location_type;
            }

            public void setLocation_type(String location_type) {
                this.location_type = location_type;
            }

            public ViewportBean getViewport() {
                return viewport;
            }

            public void setViewport(ViewportBean viewport) {
                this.viewport = viewport;
            }

            public static class LocationBean {
                /**
                 * lat : 40.7142205
                 * lng : -73.9612903
                 */

                private double lat;
                private double lng;

                public double getLat() {
                    return lat;
                }

                public void setLat(double lat) {
                    this.lat = lat;
                }

                public double getLng() {
                    return lng;
                }

                public void setLng(double lng) {
                    this.lng = lng;
                }
            }

            public static class ViewportBean {
                /**
                 * northeast : {"lat":40.71556948029149,"lng":-73.95994131970849}
                 * southwest : {"lat":40.7128715197085,"lng":-73.9626392802915}
                 */

                private NortheastBean northeast;
                private SouthwestBean southwest;

                public NortheastBean getNortheast() {
                    return northeast;
                }

                public void setNortheast(NortheastBean northeast) {
                    this.northeast = northeast;
                }

                public SouthwestBean getSouthwest() {
                    return southwest;
                }

                public void setSouthwest(SouthwestBean southwest) {
                    this.southwest = southwest;
                }

                public static class NortheastBean {
                    /**
                     * lat : 40.71556948029149
                     * lng : -73.95994131970849
                     */

                    private double lat;
                    private double lng;

                    public double getLat() {
                        return lat;
                    }

                    public void setLat(double lat) {
                        this.lat = lat;
                    }

                    public double getLng() {
                        return lng;
                    }

                    public void setLng(double lng) {
                        this.lng = lng;
                    }
                }

                public static class SouthwestBean {
                    /**
                     * lat : 40.7128715197085
                     * lng : -73.9626392802915
                     */

                    private double lat;
                    private double lng;

                    public double getLat() {
                        return lat;
                    }

                    public void setLat(double lat) {
                        this.lat = lat;
                    }

                    public double getLng() {
                        return lng;
                    }

                    public void setLng(double lng) {
                        this.lng = lng;
                    }
                }
            }
        }

        public static class AddressComponentsBean {
            /**
             * long_name : 277
             * short_name : 277
             * types : ["street_number"]
             */

            private String long_name;
            private String short_name;
            private List<String> types;

            public String getLong_name() {
                return long_name;
            }

            public void setLong_name(String long_name) {
                this.long_name = long_name;
            }

            public String getShort_name() {
                return short_name;
            }

            public void setShort_name(String short_name) {
                this.short_name = short_name;
            }

            public List<String> getTypes() {
                return types;
            }

            public void setTypes(List<String> types) {
                this.types = types;
            }
        }
    }
}
